package com.szmirren.vxApi.core.handler.route;

import com.szmirren.vxApi.core.entity.VxApis;
import com.szmirren.vxApi.core.handler.route.impl.VxApiRouteHandlerHessianServiceImpl;
import com.szmirren.vxApi.core.handler.route.impl.VxApiRouteHandlerHttpServiceImpl;
import io.vertx.core.Handler;
import io.vertx.core.http.HttpClient;
import io.vertx.ext.web.RoutingContext;

import java.net.MalformedURLException;

/**
 * VxApiRoute hessian服务类型的处理器
 * 
 * @author <a href="http://szmirren.com">Mirren</a>
 *
 */
public interface VxApiRouteHandlerHessianService extends Handler<RoutingContext> {
	/**
	 * 得到一个HTTP/HTTPS服务类型的处理器
	 * 
	 * @param isNext
	 * @param api
	 * @param appName
	 * @return
	 */
	static VxApiRouteHandlerHessianService create(String appName, boolean isNext, VxApis api) {
		return new VxApiRouteHandlerHessianServiceImpl(appName, isNext, api);
	}
}
